<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<!-- 必须的引用 -->
<link rel="stylesheet" type="text/css"
	th:href="@{/ui/js/EasyUI/themes/bootstrap/easyui.css}" />
<link rel="stylesheet" type="text/css"
	th:href="@{/ui/js/EasyUI/themes/icon.css}" />
<script th:src="@{/ui/js/EasyUI/jquery.easyui.min.js}"></script>

<script type="text/javascript">

/* 初始化 */
$('#xselect').combobox({
    valueField:'program_type_id',
    textField:'program_type_name',
    multiple:true,
	    editable:false,
    data:ptsstr
});
/* 给下拉框动态设置初始选中值 */
var ptistr="["+[[${program.program_type_ids}]]+"]";
$('#xselect').combobox('setValues',eval("(" + ptistr+ ")") );


/* 获取选中值 */
  var types=$('#xselect').combobox('getValues');//选中值如果有多个，逗号分隔

  
 
</script>
</head>
<body>


	<label class="col-md-2 control-label"><b style="color: #f00;">*</b>分类：</label>
	<div class="col-md-3">
		<input id="xselect" class="easyui-combobox" style="width: 190px; height: 32px;" /> 
	    <span class="help-block"  id="xselectTips"></span>
	</div>
	

</body>
</html>